/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calc;

/**
 *
 * @2010405121 朱荻
 */
public class Calc {
    public static int add(int cat,int dog){
    return cat+dog;
}
public static int sub(int cat,int dog){
    return cat-dog;
}
public static int div(int cat,int dog){
    return cat*dog;
}
public static int cf(int cat,int dog){
    return cat/dog;
}
    public static void main(String[] args) {
        int cat;
        int dog;
        System.out.println("cat+dog="+add(10,20));
        System.out.println("cat-dog="+sub(10,20));
        System.out.println("cat*dog="+div(10,20));
        System.out.println("cat/dog="+cf(10,20));
    }
}
